﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Practices.EnterpriseLibrary.Validation;
using Microsoft.Practices.EnterpriseLibrary.Validation.Validators;
namespace DTO
{
    public class TUKHOADICHVUCollection : List<TUKHOADICHVU>
    { }
    public class TUKHOADICHVU
    {
        internal DICHVUCollection dsDV;

        internal DICHVUCollection DSDV
        {
            get { return dsDV; }
            set { dsDV = value; }
        }
        private long MaTuKhoaDichVu;

        public long MATYKHOADICHVU
        {
            get { return MaTuKhoaDichVu; }
            set { MaTuKhoaDichVu = value; }
        }
        private String TuKhoaDichVu;
        [StringLengthValidator(1,500,MessageTemplate="Từ khóa dịch vụ phải có ít nhất 1 ký tự")]
        public String TUKHOADV
        {
            get { return TuKhoaDichVu; }
            set { TuKhoaDichVu = value; }
        }
        private long MaDichVu;

        public long MADICHVU
        {
            get { return MaDichVu; }
            set { MaDichVu = value; }
        }
        public TUKHOADICHVU() { dsDV = new DICHVUCollection(); }
    }
}
